# 执法专题 事件列表相关
from Lib.base.keywords import KeyWords
from selenium.webdriver.common.by import By
from Lib.common.common_function import *
from Lib.base.page_object.login_page import LonginPage
import uuid
import random


class EnterPrise(KeyWords):

    def create_event(self):
        '''
        新增企业关联的事件
        :return:
        '''
        data = get_data_by_yaml(get_path() + r'\Data\element_data\safety_production\event\create_event.yaml')
        element_operation(self, data[0]['data'])




if __name__ == '__main__':
    driver = choose_browser()
    L = LonginPage(driver)
    L.login('kobekq1', 'kobe8888')
    case = EnterPrise(driver)
    case.create_event()
    driver.quit()
